
from dataclasses import dataclass,field
# 基类任务状态的 dataclass
@dataclass
class TaskStatusDate:
    task_id: str =None
    status: str =None
    


# 任务成功状态类
@dataclass
class TaskSuccessDate(TaskStatusDate):
    status: str = "Success"
    speech_url: str = field(default=None, repr=False)
    audio_data: bytes = field(default=None, repr=False)
    audio_type:str=None


# 任务正在进行中状态类
@dataclass
class TaskRunningDate(TaskStatusDate):
    status: str = "Running"
    message: str = "Task is still running"



# 任务失败状态类
@dataclass
class TaskFailureDate(TaskStatusDate):
    status: str = "Failure"
    message: str = "Task failed"




